package com.weipai.springboot.module.mapper;

import com.weipai.springboot.model.Picture;

import java.util.List;
import java.util.Map;

public interface PictureMapper {
    int deleteByPrimaryKey(Integer pictureId);

    int insert(Picture record);

    int insertSelective(Picture record);

    Picture selectByPrimaryKey(Integer pictureId);

    int updateByPrimaryKeySelective(Picture record);

    int updateByPrimaryKey(Picture record);

    //通过图片的分类获取图片
    List<Map<String,Object>> getImgByPictureCategoryId(String id);

    //图片的删除
    int batchDeleteById(Integer[] id);

    //查看图片分类下是否关联图片
    int vertifiPicture(Integer id);
}